package com.piper.core.config;

import com.piper.core.aop.ParamValidateAop;
import com.piper.core.aop.RequestDataAop;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

/**
 * 配置aop
 */
@Configuration
@EnableAspectJAutoProxy
public class AopConfig {

    @Bean
    public RequestDataAop requestDataAop() {
        return new RequestDataAop();
    }

    @Bean
    public ParamValidateAop paramValidateAop() {
        return new ParamValidateAop();
    }

}
